# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-striprtf
_pkgorig=striprtf
pkgver=0.0.15
pkgrel=0
pkgdesc="Stripping rtf to plain old text"
url="https://github.com/joshy/striprtf"
arch="noarch"
license="BSD-3"
depends="python3"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/joshy/$_pkgorig/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
148d5137cde14aa16673cb6dfb7e513cb07c6d3a377f2df9229388e6f7da8b0a60818a5d4459fe56068101ec171a40391502939660cb09331c4bdaee8d5e1c10  py3-striprtf-0.0.15.tar.gz
"
